import request from '@/utils/request'

// 查询仓库记录信息列表
export function listWarehousinginfo(query) {
  return request({
    url: '/warehousinginfo/warehousinginfo/list',
    method: 'get',
    params: query
  })
}

// 查询仓库记录信息详细
export function getWarehousinginfo(id) {
  return request({
    url: '/warehousinginfo/warehousinginfo/' + id,
    method: 'get'
  })
}

// 新增仓库记录信息
export function addWarehousinginfo(data) {
  return request({
    url: '/warehousinginfo/warehousinginfo',
    method: 'post',
    data: data
  })
}

// 修改仓库记录信息
export function updateWarehousinginfo(data) {
  return request({
    url: '/warehousinginfo/warehousinginfo',
    method: 'put',
    data: data
  })
}

// 删除仓库记录信息
export function delWarehousinginfo(id) {
  return request({
    url: '/warehousinginfo/warehousinginfo/' + id,
    method: 'delete'
  })
}
